package com.oceansoft.mobile.biz.admin.entity;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

public class Auth {
	private long sid;
	private long auth_id;
	private String resource;
	
	public static RowMapper<Auth> getRowMapper() {
        return new RowMapper<Auth>() {
            public Auth mapRow(ResultSet rs, int rowNum) throws SQLException {
            	Auth obj = new Auth();
            	obj.setSid(rs.getLong("sid"));
                obj.setAuth_id(rs.getLong("auth_id"));
                obj.setResource(rs.getString("resource"));
                return obj;
            }
        };
    }
	
	
	public long getSid() {
		return sid;
	}
	public void setSid(long sid) {
		this.sid = sid;
	}
	public long getAuth_id() {
		return auth_id;
	}
	public void setAuth_id(long auth_id) {
		this.auth_id = auth_id;
	}
	public String getResource() {
		return resource;
	}
	public void setResource(String resource) {
		this.resource = resource;
	}
	
	
}
